package team.se.tms.service;

import team.se.tms.dto.Page;
import team.se.tms.po.TeacherInfo;

import java.util.List;

/**
 * 教师信息业务层接口,定义了教师信息业务层调用的方法
 *
 * @author qingx
 * @date 2018/11/26
 */
public interface TeacherInfoService {


    /**
     * 获取所有教师信息
     *
     * @return 全部教师信息
     * @throws Exception 异常
     * @create on 2018/11/26 by qingx
     */
    List<TeacherInfo> listAllTeacherInfos(Page page) throws Exception;

    /**
     * 录入教师信息
     *
     * @param addType 添加教师类型
     * @param teacherInfo 教师信息
     * @return
     * @throws Exception 异常
     * @create on 2018/12/2 by qingx
     */
    String savaTeacherInfo(String addType,TeacherInfo teacherInfo) throws Exception;

    /**
     * 修改教师信息
     *
     * @param teacherInfo 教师信息
     * @return 添加成功或失败
     * @throws Exception
     * @create on 2018/12/2 by qingx
     */
    boolean modifyTeacherInfo(TeacherInfo teacherInfo) throws Exception;
    /**
     * 查看教师信息
     *
     * @param userId 参数描述
     * @return TeacherInfo 教师信息
     * @throws Exception 异常
     * @create on 2018/12/9 by johnny
     */
    TeacherInfo getTeacherInfo(String userId) throws Exception;
}
